﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %> 
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CaseSearchUserControl.ascx.cs" Inherits="JM.JCY.SharePointComponent.LawArchives.CaseSearch.CaseSearchUserControl" %>
    <script type="text/javascript">

        function RedirectToViewNews(sender, newsId) {
            sender.href = "ViewNewsDetail.aspx?NewsId=" + newsId + "&Category=" + $("#<%=hfCategory.ClientID %>").val();
            return false;
        }


        function RedirectToManageNews(sender) {
            sender.href = "ManageNews.aspx?Category=" + $("#<%=hfCategory.ClientID %>").val();
        }

    </script>
   
<style type="text/css">
    .ms-input /* Set textbox's width of dtEffDateFrom and dtEffDateTo */
    {
        width: 75px;
    }
    
    table.form td.nopaddingleft
    {
        padding-left: 0px;
        padding-top: 0px;
        vertical-align: top;
        font-family: Calibri;
        font-size: 12px;
    }
</style>
<div>
    <table class="main">
        <tr>
       <td valign="top" width="100%" runat="server" id="tdContent">
                <table class="content" width="98%">
                    <tr>
                        <td style="padding: 5px;">
                            <table width="100%" class="title">
                                <tr>
                                    <td width="60%">
                                        <h2><img src="/_layouts/JM.JCY.Resource/images/新闻大.png" width="32" />
                                            案件综合查询
                                        </h2>
                                    </td>
                                </tr>
                            </table>
                            <br />
                            <hr />
                            <table width="100%" class="form">
                                <tr>
                                    <td>
                                        承办部门
                                    </td>
                                    <td>
                                        :
                                    </td>
                                    <td>
                                           <asp:DropDownList ID ="ddlDepartment" runat="server" Width="320"></asp:DropDownList>
                                    </td>
                                </tr>

                                  <tr>
                                    <td>
                                        承办人
                                    </td>
                                    <td>
                                        :
                                    </td>
                                    <td>
                                        <asp:textbox id="txtCBR" runat="server" Width="320"></asp:textbox>
                                    </td>
                                </tr>

                                     <tr>
                                    <td>
                                        受案日期
                                    </td>
                                    <td>
                                        :
                                    </td>
                                    <td class="nopaddingleft">
                                        <table cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td align="left" valign="top" class="nopaddingleft">
                                                    <sharepoint:datetimecontrol id="dtDateFrom" calendarimageurl="/_layouts/JM.JCY.Resource/images/calendar.jpg"
                                                        datepickerframeurl="/_layouts/iframe.aspx" dateonly="true" calendar="Gregorian"
                                                        localeid="2057" runat="server"></sharepoint:datetimecontrol>
                                                </td>
                                                <td>
                                                    -
                                                </td>
                                                <td align="left" valign="top" class="nopaddingleft">
                                                    <sharepoint:datetimecontrol id="dtDateTo" calendarimageurl="/_layouts/JM.JCY.Resource/images/calendar.jpg"
                                                        datepickerframeurl="/_layouts/iframe.aspx" dateonly="true" calendar="Gregorian"
                                                        localeid="2057" runat="server"></sharepoint:datetimecontrol>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            

                                         <tr>
                                    <td>
                                        案件状态
                                    </td>
                                    <td>
                                        :
                                    </td>
                                    <td>
                                      
                                        <asp:RadioButtonList ID="RadioButtonList1" runat="server" 
                                            RepeatDirection="Horizontal">
                                            <asp:ListItem Value="0" Selected="True">所有案件</asp:ListItem>
                                            <asp:ListItem Value="1">已结案</asp:ListItem>
                                            <asp:ListItem Value="2">未结案</asp:ListItem>
                                        </asp:RadioButtonList>
                                      
                                    </td>
                                </tr>
                                <tr><td colspan=3><br /><hr /></td></tr>
                                    <tr>
                                    <td colspan="3" class="button" align="right">
                                        <asp:imagebutton id="imgSubmit" runat="server" 
                                            imageurl="~/_layouts/JM.JCY.Resource/images/search.png" 
                                            onclick="imgSubmit_Click" />
                                        <asp:imagebutton id="imgCancel" runat="server" 
                                            imageurl="~/_layouts/JM.JCY.Resource/images/cancel.png" 
                                            onclick="imgCancel_Click"/>
                                    </td>
                                </tr>
                            </table>
                            <table width="100%" class="list">
                                <tr>
                                    <td>
                                        <div id="content">
                                            <asp:gridview id="gvCaseSearch" runat="server" autogeneratecolumns="False" borderwidth="0px"
                                                gridlines="Horizontal" cssclass="altrowstablebc" 
                                                Width="100%" EnableModelValidation="True" 
                                                onrowdatabound="gvCaseSearch_RowDataBound"  PageSize="20" AllowPaging="true" 
                                        onpageindexchanging="gvCaseSearch_PageIndexChanging">
                                                <Columns>
                                                    <asp:BoundField DataField="N_AH" HeaderText="案号" />
                                                    <asp:BoundField HeaderText="承办部门" DataField="C_CBBM" />
                                                    <asp:BoundField HeaderText="承办人" DataField="C_CBR" />
                                                    <asp:BoundField HeaderText="案件阶段" DataField="C_AJJD" />
                                                    <asp:BoundField HeaderText="案由" DataField="C_MC" />
                                                    <asp:BoundField HeaderText="嫌疑人" DataField="C_XM" />
                                                    <asp:BoundField HeaderText="受案日期" DataField="D_SARQ" />
                                                    <asp:BoundField HeaderText="结案日期" DataField="D_JARQ" />
                                                </Columns>
                                                <PagerSettings FirstPageText="第一页" LastPageText="最后一页" 
                                            Mode="NumericFirstLast" />
                                            </asp:gridview>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                            <br />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</div>